package de.szut.gui.language;

import javax.swing.JMenu;

public class TranslatableMenu extends JMenu implements TranslatableComponent {

	private static final long serialVersionUID = 6768112202911923667L;
	private String key;
	
	@Override
	public void translate(String translation) {
		setText(translation);
	}

	@Override
	public String getTranslation() {
		return getText();
	}

	@Override
	public String getTranslationKey() {
		return key;
	}

	@Override
	public void setTranslationKey(String key) {
		this.key = key;
	}

}
